/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pub.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author zmy
 * @version 2019-04-18
 */
public class PubAttach extends DataEntity<PubAttach> {
	
	private static final long serialVersionUID = 1L;
	private String articleid;		// 项目id
	private String userid;		// 用户id
	private String type;		// 1-点赞2-评论3-收藏
	private String comment;		// 评论内容
	private String commenttime;		// 时间
	private String arttype;		// 1-感动专栏2-求助专栏3-公益活动
	private String articlename;
	
	public PubAttach() {
		super();
	}

	public PubAttach(String id){
		super(id);
	}

	@Length(min=0, max=32, message="项目id长度必须介于 0 和 32 之间")
	public String getArticleid() {
		return articleid;
	}

	public void setArticleid(String articleid) {
		this.articleid = articleid;
	}
	
	@Length(min=0, max=32, message="用户id长度必须介于 0 和 32 之间")
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=0, max=2, message="1-点赞2-评论3-收藏长度必须介于 0 和 2 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=255, message="评论内容长度必须介于 0 和 255 之间")
	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}
	
	@Length(min=0, max=20, message="时间长度必须介于 0 和 20 之间")
	public String getCommenttime() {
		return commenttime;
	}

	public void setCommenttime(String commenttime) {
		this.commenttime = commenttime;
	}
	
	@Length(min=0, max=2, message="1-感动专栏2-求助专栏3-公益活动长度必须介于 0 和 2 之间")
	public String getArttype() {
		return arttype;
	}

	public void setArttype(String arttype) {
		this.arttype = arttype;
	}

	public String getArticlename() {
		return articlename;
	}

	public void setArticlename(String articlename) {
		this.articlename = articlename;
	}
	
}